home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
ScrollableViewEditor.h
< prev
next >
Wrap
Text File
|
1996-12-07
|
2KB
|
75 lines
/*
* File: ScrollableViewEditor.h
* Summary: A view that knows how to edit a TScrollableView.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 12/07/96 JDJ Created
*/
#pragma once
#include <ZScrollableView.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditScrollableViewCommand
// ===================================================================================
class CEditScrollableViewCommand : public CBaseEditPaneCommand<TScrollableView, SScrollableViewInfo> {
typedef CBaseEditPaneCommand<TScrollableView, SScrollableViewInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditScrollableViewCommand();
CEditScrollableViewCommand(TScrollableView* pane, const SScrollableViewInfo& oldInfo, const SScrollableViewInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SScrollableViewInfo& newInfo);
};
// ===================================================================================
// CScrollableViewEditor
// ===================================================================================
class CScrollableViewEditor : public CBasePaneEditor<TScrollableView, SScrollableViewInfo, CEditScrollableViewCommand> {
typedef CBasePaneEditor<TScrollableView, SScrollableViewInfo, CEditScrollableViewCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CScrollableViewEditor();
CScrollableViewEditor(TView* superView);
//-----------------------------------
// Inherited API
//
protected:
virtual SScrollableViewInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SScrollableViewInfo& info);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
};